import pandas as pd
import numpy as np
import seaborn
import matplotlib as mpl
import matplotlib.pyplot as plt



'''
#1,2....8,9,10
x = np.arange(1, 11, 1)
#1,2....8,9,10，11
x=np.linspace(1,11)
# 标签可以分开使用  eg:plt.plot(x, x * 2, label = "First")
label = ["First", "Second", "Third"]
plt.plot(x, x * 2)
plt.plot(x, x * 3)
plt.plot(x, x * 4)
#loc=upper left 或者lower right，ncol指标签一行的数量
#字体大小fontsize : int or float or {‘xx-small’, ‘x-small’, ‘small’, ‘medium’, ‘large’, ‘x-large’, ‘xx-large’}
#去掉图例边框plt.legend(loc='best',frameon=False) 
#设置图例边框颜色plt.legend(loc='best',edgecolor='blue') 
#设置图例背景颜色,若无边框,参数无效plt.legend(loc='best',facecolor='blue') 
#设置图例标题plt.legend(loc='best',title='figure 1 legend') 
plt.legend(label, loc = 0, ncol = 3)
plt.show()
'''

'''
#一张图两条线
#t = np.arange(0, 69, 1)
#plt.plot(t, t, 'r', t, t**2, 'b')
#标签
#label = ['t', 't**2']
#upper left 或者lower right
#plt.legend(label, loc='upper left')
plt.show()
'''

#=======seaborn()使用=========#
'''
seaborn.set()
x=np.random.randn(100)
seaborn.kdeplot(x,cut=0)
#plot保存
#plt.savefig('picture3')
#plt输出
plt.show()
'''